namespace OasisCiq.Xal
{
    using System;
    using System.Linq;
    
    /// <summary>
    /// A list of administrative area name element types
    /// </summary>
    public class AdministrativeAreaNameTypeList : XS.XSNormalizedString
    {
        private static readonly string[] PossibleValues = new[]
        {
            "Name", // Name of the administrative area
            "Number",
            "ReferenceLocation", // Reference location information in support of the administrative area. e.g. Territory of France
            "Type" // Other supporting information
        };

        public AdministrativeAreaNameTypeList(string value)
            : base(value)
        {
            if (!PossibleValues.Contains(value))
            {
                throw new ArgumentOutOfRangeException();
            }
        }
    }
}